A16 - Dungeon 1
https://atcoder.jp/contests/tessoku-book/tasks/tessoku_book_p
code: python
n = int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
# 0 1 2 3 4
# 2--4--1--3
# 5---3---7
dp =
None
* n
dp
0
= 0
dp
1
= a
0
for i in range(2, n):
dp
i
= min(dp
i-1
+ a
i-1
, dp
i-2
+ b
i-2
)
print(dp
-1
)